package com.googlecode.moneyManager.dao;

import com.googlecode.moneyManager.exceptions.DataAccessException;

import java.util.List;


public interface GenericDAO<T> {
    String create(T t) throws DataAccessException;
    void saveOrUpdate(T t) throws DataAccessException;
    void merge(T t) throws DataAccessException;
    void delete(T t) throws DataAccessException;
    T get(String id)   throws DataAccessException;
    List<T> getAll() throws DataAccessException;
}
